<?php  
$columnorder[0] = '/1/';
$columnorder[1] = '/2/';
$columnorder[2] = '/3/';

$textalign[0] = 'text_right';
$textalign[1] = 'text_left';
$textalign[2] = 'text_center';
?>
			<div class="subcolumns columnblock">
			<?php
			if ($yamlconfig->di_getOptionValue('di_subcolumn') === 3) :
				$col1 = preg_replace($columnorder, $textalign, (string) $yamlconfig->di_getOptionValue('di_subcol_1'));
				$col2 = preg_replace($columnorder, $textalign, $yamlconfig->di_getOptionValue('di_subcol_2'));
				$col3 = preg_replace($columnorder, $textalign, $yamlconfig->di_getOptionValue('di_subcol_3'));
			?>
				<div class="c33l">
					<div class="subcl">
						<ul class="sidebar <?php echo $col1; ?>">
					<?php 	/* Widgetized sidebar, if you have the plugin installed. */
					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Subcolumn1') ) : ?>
						<li class="widget widget_recent_comments">
							<h3><?php _e('Recent Comments'); ?></h3>
							<?php di_last_comments(5); ?>
						</li>
					<?php endif; ?>
						</ul>
					</div>
				</div>
				<div class="c33l">
					<div class="subc">
						<ul class="sidebar <?php echo $col2; ?>">
					<?php 	/* Widgetized sidebar, if you have the plugin installed. */
					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Subcolumn2') ) : ?>
						<?php if (function_exists('wp_tag_cloud')) : ?>
							<li id="sc_tagcloud" class="widget tag_cloud">
								<h3>Tag Cloud</h3>
								<?php wp_tag_cloud('smallest=100&largest=200&unit=%&format=list'); ?>
							</li>
						<?php endif; ?>
					<?php endif; ?>
						</ul>
					</div>
				</div>
				<div class="c33r">
					<div class="subcr">
						<ul class="sidebar <?php echo $col3; ?>">
					<?php 	/* Widgetized sidebar, if you have the plugin installed. */
					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Subcolumn3') ) : ?>
						<li class="widget widget_recent_comments">
							<h3><?php _e('Ping- / Trackbacks',''); ?></h3>
							<?php di_last_trackPings(5); ?>
						</li>
					<?php endif; ?>
						</ul>
					</div>
				</div>
				<?php endif; ?>
				
			<?php
			if ($yamlconfig->di_getOptionValue('di_subcolumn') === 2) :
				$col1 = preg_replace($columnorder, $textalign, $yamlconfig->di_getOptionValue('di_subcol_1'));
				$col2 = preg_replace($columnorder, $textalign, $yamlconfig->di_getOptionValue('di_subcol_2'));
			?>
				<div class="c50l">
					<div class="subcl">
						<ul class="sidebar <?php echo $col1; ?>">
					<?php 	/* Widgetized sidebar, if you have the plugin installed. */
					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Subcolumn1') ) : ?>
						<li>
							<h3><?php _e('letzte Kommentare',''); ?></h3>
						</li>
					<?php endif; ?>
						</ul>
					</div>
				</div>
				<div class="c50r">
					<div class="subcr">
						<ul class="sidebar <?php echo $col2; ?>">
					<?php 	/* Widgetized sidebar, if you have the plugin installed. */
					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Subcolumn2') ) : ?>
						<?php if (function_exists('wp_tag_cloud')) : ?>
							<li id="sc_tagcloud" class="widget tag_cloud">
								<h3>Tag Cloud</h3>
								<?php wp_tag_cloud('smallest=100&largest=200&unit=%&format=list'); ?>
							</li>
						<?php endif; ?>
					<?php endif; ?>
						</ul>
					</div>
				</div>
				<?php endif; ?>

			<?php
			if ($yamlconfig->di_getOptionValue('di_subcolumn') === 1) :
				$col1 = preg_replace($columnorder, $textalign, $yamlconfig->di_getOptionValue('di_subcol_1'));
			?>
					<div class="subc text_center">
						<ul class="sidebar <?php echo $col1; ?>">
					<?php 	/* Widgetized sidebar, if you have the plugin installed. */
					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Subcolumn1') ) : ?>
						<?php if (function_exists('wp_tag_cloud')) : ?>
							<li id="sc_tagcloud" class="widget tag_cloud">
								<h3>Tag Cloud</h3>
								<?php wp_tag_cloud('smallest=100&largest=200&unit=%&format=list'); ?>
							</li>
						<?php endif; ?>
					<?php endif; ?>
						</ul>
					</div>
				<?php endif; ?>
			</div>